<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::BackgroundSubtractorMOG2 Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html">BackgroundSubtractorMOG2</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="../../d2/de7/classcv_1_1BackgroundSubtractorMOG2-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::BackgroundSubtractorMOG2 Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="../../d7/de9/group__video.html">Video Analysis</a> » <a class="el" href="../../de/de1/group__video__motion.html">Motion Analysis</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Gaussian Mixture-based Background/Foreground Segmentation <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a>.  
 <a href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#details">More...</a></p>
<p><code>#include &lt;opencv2/video/background_segm.hpp&gt;</code></p>
<div class="dynheader">
Inheritance diagram for cv::BackgroundSubtractorMOG2:</div>
<div class="dyncontent">
 <div class="center">
  <img alt="" src="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.png" usemap="#cv::BackgroundSubtractorMOG2_map"/>
  <map id="cv::BackgroundSubtractorMOG2_map" name="cv::BackgroundSubtractorMOG2_map">
<area alt="cv::BackgroundSubtractor" coords="0,56,230,80" href="../../d7/df6/classcv_1_1BackgroundSubtractor.html" shape="rect" title="Base class for background/foreground segmentation. : "/>
<area alt="cv::Algorithm" coords="0,0,230,24" href="../../d3/d46/classcv_1_1Algorithm.html" shape="rect" title="This is a base class for all more or less complex algorithms in OpenCV. "/>
<area alt="cv::cuda::BackgroundSubtractorMOG2" coords="0,168,230,192" href="../../df/d23/classcv_1_1cuda_1_1BackgroundSubtractorMOG2.html" shape="rect" title="Gaussian Mixture-based Background/Foreground Segmentation Algorithm. "/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a682adde901148d85450435e6cc0de4a1"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a682adde901148d85450435e6cc0de4a1">apply</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> fgmask, double learningRate=-1) <a class="el" href="../../db/de0/group__core__utils.html#ga4d89d63e402ef9ddc48e18e21180fe4a">CV_OVERRIDE</a>=0</td></tr>
<tr class="memdesc:a682adde901148d85450435e6cc0de4a1"><td class="mdescLeft"> </td><td class="mdescRight">Computes a foreground mask.  <a href="#a682adde901148d85450435e6cc0de4a1">More...</a><br/></td></tr>
<tr class="separator:a682adde901148d85450435e6cc0de4a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaeb8ec022e65adc698f0784672d77a89"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#aaeb8ec022e65adc698f0784672d77a89">getBackgroundRatio</a> () const =0</td></tr>
<tr class="memdesc:aaeb8ec022e65adc698f0784672d77a89"><td class="mdescLeft"> </td><td class="mdescRight">Returns the "background ratio" parameter of the algorithm.  <a href="#aaeb8ec022e65adc698f0784672d77a89">More...</a><br/></td></tr>
<tr class="separator:aaeb8ec022e65adc698f0784672d77a89"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a137c239f3bcfa930f6c25f692fef8bef"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a137c239f3bcfa930f6c25f692fef8bef">getComplexityReductionThreshold</a> () const =0</td></tr>
<tr class="memdesc:a137c239f3bcfa930f6c25f692fef8bef"><td class="mdescLeft"> </td><td class="mdescRight">Returns the complexity reduction threshold.  <a href="#a137c239f3bcfa930f6c25f692fef8bef">More...</a><br/></td></tr>
<tr class="separator:a137c239f3bcfa930f6c25f692fef8bef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af12944537bba5229dfdf48f36475e25f"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#af12944537bba5229dfdf48f36475e25f">getDetectShadows</a> () const =0</td></tr>
<tr class="memdesc:af12944537bba5229dfdf48f36475e25f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the shadow detection flag.  <a href="#af12944537bba5229dfdf48f36475e25f">More...</a><br/></td></tr>
<tr class="separator:af12944537bba5229dfdf48f36475e25f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2e49e568a8cdd283d19040a63ef656df"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a2e49e568a8cdd283d19040a63ef656df">getHistory</a> () const =0</td></tr>
<tr class="memdesc:a2e49e568a8cdd283d19040a63ef656df"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of last frames that affect the background model.  <a href="#a2e49e568a8cdd283d19040a63ef656df">More...</a><br/></td></tr>
<tr class="separator:a2e49e568a8cdd283d19040a63ef656df"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adbb1d295befaff88a54a929e50aaf879"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#adbb1d295befaff88a54a929e50aaf879">getNMixtures</a> () const =0</td></tr>
<tr class="memdesc:adbb1d295befaff88a54a929e50aaf879"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of gaussian components in the background model.  <a href="#adbb1d295befaff88a54a929e50aaf879">More...</a><br/></td></tr>
<tr class="separator:adbb1d295befaff88a54a929e50aaf879"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acdb85152b349d70561fecc4554ad76e6"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#acdb85152b349d70561fecc4554ad76e6">getShadowThreshold</a> () const =0</td></tr>
<tr class="memdesc:acdb85152b349d70561fecc4554ad76e6"><td class="mdescLeft"> </td><td class="mdescRight">Returns the shadow threshold.  <a href="#acdb85152b349d70561fecc4554ad76e6">More...</a><br/></td></tr>
<tr class="separator:acdb85152b349d70561fecc4554ad76e6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae5f09f97867bcc4f721e4c082b34a13f"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#ae5f09f97867bcc4f721e4c082b34a13f">getShadowValue</a> () const =0</td></tr>
<tr class="memdesc:ae5f09f97867bcc4f721e4c082b34a13f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the shadow value.  <a href="#ae5f09f97867bcc4f721e4c082b34a13f">More...</a><br/></td></tr>
<tr class="separator:ae5f09f97867bcc4f721e4c082b34a13f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2a3aacc2175d3a22167ef64b1d23b30c"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a2a3aacc2175d3a22167ef64b1d23b30c">getVarInit</a> () const =0</td></tr>
<tr class="memdesc:a2a3aacc2175d3a22167ef64b1d23b30c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the initial variance of each gaussian component.  <a href="#a2a3aacc2175d3a22167ef64b1d23b30c">More...</a><br/></td></tr>
<tr class="separator:a2a3aacc2175d3a22167ef64b1d23b30c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a87baa2f2cbc8fb393cce46634dbe99ac"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a87baa2f2cbc8fb393cce46634dbe99ac">getVarMax</a> () const =0</td></tr>
<tr class="separator:a87baa2f2cbc8fb393cce46634dbe99ac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5d3e41f74ee8671db9c0c9f454f12453"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a5d3e41f74ee8671db9c0c9f454f12453">getVarMin</a> () const =0</td></tr>
<tr class="separator:a5d3e41f74ee8671db9c0c9f454f12453"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3396943b42f846946bb662330a5a9cdc"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a3396943b42f846946bb662330a5a9cdc">getVarThreshold</a> () const =0</td></tr>
<tr class="memdesc:a3396943b42f846946bb662330a5a9cdc"><td class="mdescLeft"> </td><td class="mdescRight">Returns the variance threshold for the pixel-model match.  <a href="#a3396943b42f846946bb662330a5a9cdc">More...</a><br/></td></tr>
<tr class="separator:a3396943b42f846946bb662330a5a9cdc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a27c06536ada9d4226c251da6b94abe18"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a27c06536ada9d4226c251da6b94abe18">getVarThresholdGen</a> () const =0</td></tr>
<tr class="memdesc:a27c06536ada9d4226c251da6b94abe18"><td class="mdescLeft"> </td><td class="mdescRight">Returns the variance threshold for the pixel-model match used for new mixture component generation.  <a href="#a27c06536ada9d4226c251da6b94abe18">More...</a><br/></td></tr>
<tr class="separator:a27c06536ada9d4226c251da6b94abe18"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab8bdfc9c318650aed53ecc836667b56a"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#ab8bdfc9c318650aed53ecc836667b56a">setBackgroundRatio</a> (double ratio)=0</td></tr>
<tr class="memdesc:ab8bdfc9c318650aed53ecc836667b56a"><td class="mdescLeft"> </td><td class="mdescRight">Sets the "background ratio" parameter of the algorithm.  <a href="#ab8bdfc9c318650aed53ecc836667b56a">More...</a><br/></td></tr>
<tr class="separator:ab8bdfc9c318650aed53ecc836667b56a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af45a64f718ef1b43ca8f738c496408f1"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#af45a64f718ef1b43ca8f738c496408f1">setComplexityReductionThreshold</a> (double ct)=0</td></tr>
<tr class="memdesc:af45a64f718ef1b43ca8f738c496408f1"><td class="mdescLeft"> </td><td class="mdescRight">Sets the complexity reduction threshold.  <a href="#af45a64f718ef1b43ca8f738c496408f1">More...</a><br/></td></tr>
<tr class="separator:af45a64f718ef1b43ca8f738c496408f1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a329fea969ebfb55814f85418b63c4d96"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a329fea969ebfb55814f85418b63c4d96">setDetectShadows</a> (bool detectShadows)=0</td></tr>
<tr class="memdesc:a329fea969ebfb55814f85418b63c4d96"><td class="mdescLeft"> </td><td class="mdescRight">Enables or disables shadow detection.  <a href="#a329fea969ebfb55814f85418b63c4d96">More...</a><br/></td></tr>
<tr class="separator:a329fea969ebfb55814f85418b63c4d96"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e8b40fef89a582ce42d99d2453db67a"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a5e8b40fef89a582ce42d99d2453db67a">setHistory</a> (int history)=0</td></tr>
<tr class="memdesc:a5e8b40fef89a582ce42d99d2453db67a"><td class="mdescLeft"> </td><td class="mdescRight">Sets the number of last frames that affect the background model.  <a href="#a5e8b40fef89a582ce42d99d2453db67a">More...</a><br/></td></tr>
<tr class="separator:a5e8b40fef89a582ce42d99d2453db67a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae049541aaa12c3a69d854c8f79a23ba3"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#ae049541aaa12c3a69d854c8f79a23ba3">setNMixtures</a> (int nmixtures)=0</td></tr>
<tr class="memdesc:ae049541aaa12c3a69d854c8f79a23ba3"><td class="mdescLeft"> </td><td class="mdescRight">Sets the number of gaussian components in the background model.  <a href="#ae049541aaa12c3a69d854c8f79a23ba3">More...</a><br/></td></tr>
<tr class="separator:ae049541aaa12c3a69d854c8f79a23ba3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1e9f50c4bf60b77ca12a6977ccdd08cb"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a1e9f50c4bf60b77ca12a6977ccdd08cb">setShadowThreshold</a> (double <a class="el" href="../../d7/d1b/group__imgproc__misc.html#gae8a4a146d1ca78c626a53577199e9c57">threshold</a>)=0</td></tr>
<tr class="memdesc:a1e9f50c4bf60b77ca12a6977ccdd08cb"><td class="mdescLeft"> </td><td class="mdescRight">Sets the shadow threshold.  <a href="#a1e9f50c4bf60b77ca12a6977ccdd08cb">More...</a><br/></td></tr>
<tr class="separator:a1e9f50c4bf60b77ca12a6977ccdd08cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a259029f0eefe5ade47d98d744e829f8a"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a259029f0eefe5ade47d98d744e829f8a">setShadowValue</a> (int value)=0</td></tr>
<tr class="memdesc:a259029f0eefe5ade47d98d744e829f8a"><td class="mdescLeft"> </td><td class="mdescRight">Sets the shadow value.  <a href="#a259029f0eefe5ade47d98d744e829f8a">More...</a><br/></td></tr>
<tr class="separator:a259029f0eefe5ade47d98d744e829f8a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a55b91818465653df3672638c1e864bab"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a55b91818465653df3672638c1e864bab">setVarInit</a> (double varInit)=0</td></tr>
<tr class="memdesc:a55b91818465653df3672638c1e864bab"><td class="mdescLeft"> </td><td class="mdescRight">Sets the initial variance of each gaussian component.  <a href="#a55b91818465653df3672638c1e864bab">More...</a><br/></td></tr>
<tr class="separator:a55b91818465653df3672638c1e864bab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2026951d9331d299f14279d53ffb202a"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a2026951d9331d299f14279d53ffb202a">setVarMax</a> (double varMax)=0</td></tr>
<tr class="separator:a2026951d9331d299f14279d53ffb202a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a62fd4f08f4528a1f849346139d58e863"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a62fd4f08f4528a1f849346139d58e863">setVarMin</a> (double varMin)=0</td></tr>
<tr class="separator:a62fd4f08f4528a1f849346139d58e863"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab58c51659a49f9d8bfdf7062cf4859b5"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#ab58c51659a49f9d8bfdf7062cf4859b5">setVarThreshold</a> (double varThreshold)=0</td></tr>
<tr class="memdesc:ab58c51659a49f9d8bfdf7062cf4859b5"><td class="mdescLeft"> </td><td class="mdescRight">Sets the variance threshold for the pixel-model match.  <a href="#ab58c51659a49f9d8bfdf7062cf4859b5">More...</a><br/></td></tr>
<tr class="separator:ab58c51659a49f9d8bfdf7062cf4859b5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0afcbbdc16fd13918e2044c2bab10ba4"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a0afcbbdc16fd13918e2044c2bab10ba4">setVarThresholdGen</a> (double varThresholdGen)=0</td></tr>
<tr class="memdesc:a0afcbbdc16fd13918e2044c2bab10ba4"><td class="mdescLeft"> </td><td class="mdescRight">Sets the variance threshold for the pixel-model match used for new mixture component generation.  <a href="#a0afcbbdc16fd13918e2044c2bab10ba4">More...</a><br/></td></tr>
<tr class="separator:a0afcbbdc16fd13918e2044c2bab10ba4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classcv_1_1BackgroundSubtractor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1BackgroundSubtractor')"><img alt="-" src="../../closed.png"/> Public Member Functions inherited from <a class="el" href="../../d7/df6/classcv_1_1BackgroundSubtractor.html">cv::BackgroundSubtractor</a></td></tr>
<tr class="memitem:a98cb8e292a6cbcb32436dad62a82f974 inherit pub_methods_classcv_1_1BackgroundSubtractor"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df6/classcv_1_1BackgroundSubtractor.html#a98cb8e292a6cbcb32436dad62a82f974">getBackgroundImage</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> backgroundImage) const =0</td></tr>
<tr class="memdesc:a98cb8e292a6cbcb32436dad62a82f974 inherit pub_methods_classcv_1_1BackgroundSubtractor"><td class="mdescLeft"> </td><td class="mdescRight">Computes a background image.  <a href="../../d7/df6/classcv_1_1BackgroundSubtractor.html#a98cb8e292a6cbcb32436dad62a82f974">More...</a><br/></td></tr>
<tr class="separator:a98cb8e292a6cbcb32436dad62a82f974 inherit pub_methods_classcv_1_1BackgroundSubtractor"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a827c8b2781ed17574805f373e6054ff1">Algorithm</a> ()</td></tr>
<tr class="separator:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a8ae826127fa0f1f8d10a24841bd376f8">~Algorithm</a> ()</td></tr>
<tr class="separator:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">clear</a> ()</td></tr>
<tr class="memdesc:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Clears the algorithm state.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">More...</a><br/></td></tr>
<tr class="separator:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">empty</a> () const</td></tr>
<tr class="memdesc:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a> is empty (e.g. in the very beginning or after unsuccessful read.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">More...</a><br/></td></tr>
<tr class="separator:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a286fc82744ccab3d248aca44524266a9">getDefaultName</a> () const</td></tr>
<tr class="separator:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm parameters from a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">More...</a><br/></td></tr>
<tr class="separator:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a0a880744bc4e3f45711444571df47d67">save</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename) const</td></tr>
<tr class="separator:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">write</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="memdesc:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Stores algorithm parameters in a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">More...</a><br/></td></tr>
<tr class="separator:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">write</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &gt; &amp;fs, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()) const</td></tr>
<tr class="memdesc:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">More...</a><br/></td></tr>
<tr class="separator:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Static Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">load</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from the file.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">More...</a><br/></td></tr>
<tr class="separator:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">loadFromString</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;strModel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from a String.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">More...</a><br/></td></tr>
<tr class="separator:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm from the file node.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">More...</a><br/></td></tr>
<tr class="separator:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Protected Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a68eeca71617474ad3d4561786f0289d2">writeFormat</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="separator:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Gaussian Mixture-based Background/Foreground Segmentation <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a>. </p>
<p>The class implements the Gaussian mixture model background subtraction described in <a class="el" href="../../d0/de3/citelist.html#CITEREF_Zivkovic2004">[299]</a> and <a class="el" href="../../d0/de3/citelist.html#CITEREF_Zivkovic2006">[298]</a> . </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a682adde901148d85450435e6cc0de4a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a682adde901148d85450435e6cc0de4a1">◆ </a></span>apply()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::apply </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>fgmask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>learningRate</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>fgmask</td><td>=</td><td>cv.BackgroundSubtractorMOG2.apply(</td><td class="paramname">image[, fgmask[, learningRate]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Computes a foreground mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Next video frame. Floating point frame will be used without scaling and should be in range \([0,255]\). </td></tr>
    <tr><td class="paramname">fgmask</td><td>The output foreground mask as an 8-bit binary image. </td></tr>
    <tr><td class="paramname">learningRate</td><td>The value between 0 and 1 that indicates how fast the background model is learnt. Negative parameter value makes the algorithm to use some automatically chosen learning rate. 0 means that the background model is not updated at all, 1 means that the background model is completely reinitialized from the last frame. </td></tr>
  </table>
  </dd>
</dl>
<p>Implements <a class="el" href="../../d7/df6/classcv_1_1BackgroundSubtractor.html#aa735e76f7069b3fa9c3f32395f9ccd21">cv::BackgroundSubtractor</a>.</p>
</div>
</div>
<a id="aaeb8ec022e65adc698f0784672d77a89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeb8ec022e65adc698f0784672d77a89">◆ </a></span>getBackgroundRatio()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getBackgroundRatio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getBackgroundRatio(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the "background ratio" parameter of the algorithm. </p>
<p>If a foreground pixel keeps semi-constant value for about backgroundRatio*history frames, it's considered background and added to the model as a center of a new component. It corresponds to TB parameter in the paper. </p>
</div>
</div>
<a id="a137c239f3bcfa930f6c25f692fef8bef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a137c239f3bcfa930f6c25f692fef8bef">◆ </a></span>getComplexityReductionThreshold()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getComplexityReductionThreshold </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getComplexityReductionThreshold(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the complexity reduction threshold. </p>
<p>This parameter defines the number of samples needed to accept to prove the component exists. CT=0.05 is a default value for all the samples. By setting CT=0 you get an algorithm very similar to the standard Stauffer&amp;Grimson algorithm. </p>
</div>
</div>
<a id="af12944537bba5229dfdf48f36475e25f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af12944537bba5229dfdf48f36475e25f">◆ </a></span>getDetectShadows()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::BackgroundSubtractorMOG2::getDetectShadows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getDetectShadows(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the shadow detection flag. </p>
<p>If true, the algorithm detects shadows and marks them. See createBackgroundSubtractorMOG2 for details. </p>
</div>
</div>
<a id="a2e49e568a8cdd283d19040a63ef656df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e49e568a8cdd283d19040a63ef656df">◆ </a></span>getHistory()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::BackgroundSubtractorMOG2::getHistory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getHistory(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the number of last frames that affect the background model. </p>
</div>
</div>
<a id="adbb1d295befaff88a54a929e50aaf879"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbb1d295befaff88a54a929e50aaf879">◆ </a></span>getNMixtures()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::BackgroundSubtractorMOG2::getNMixtures </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getNMixtures(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the number of gaussian components in the background model. </p>
</div>
</div>
<a id="acdb85152b349d70561fecc4554ad76e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdb85152b349d70561fecc4554ad76e6">◆ </a></span>getShadowThreshold()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getShadowThreshold </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getShadowThreshold(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the shadow threshold. </p>
<p>A shadow is detected if pixel is a darker version of the background. The shadow threshold (Tau in the paper) is a threshold defining how much darker the shadow can be. Tau= 0.5 means that if a pixel is more than twice darker then it is not shadow. See Prati, Mikic, Trivedi and Cucchiara, Detecting Moving Shadows...*, IEEE PAMI,2003. </p>
</div>
</div>
<a id="ae5f09f97867bcc4f721e4c082b34a13f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5f09f97867bcc4f721e4c082b34a13f">◆ </a></span>getShadowValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::BackgroundSubtractorMOG2::getShadowValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getShadowValue(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the shadow value. </p>
<p>Shadow value is the value used to mark shadows in the foreground mask. Default value is 127. Value 0 in the mask always means background, 255 means foreground. </p>
</div>
</div>
<a id="a2a3aacc2175d3a22167ef64b1d23b30c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a3aacc2175d3a22167ef64b1d23b30c">◆ </a></span>getVarInit()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getVarInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getVarInit(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the initial variance of each gaussian component. </p>
</div>
</div>
<a id="a87baa2f2cbc8fb393cce46634dbe99ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87baa2f2cbc8fb393cce46634dbe99ac">◆ </a></span>getVarMax()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getVarMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getVarMax(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a5d3e41f74ee8671db9c0c9f454f12453"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d3e41f74ee8671db9c0c9f454f12453">◆ </a></span>getVarMin()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getVarMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getVarMin(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a3396943b42f846946bb662330a5a9cdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3396943b42f846946bb662330a5a9cdc">◆ </a></span>getVarThreshold()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getVarThreshold </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getVarThreshold(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the variance threshold for the pixel-model match. </p>
<p>The main threshold on the squared Mahalanobis distance to decide if the sample is well described by the background model or not. Related to Cthr from the paper. </p>
</div>
</div>
<a id="a27c06536ada9d4226c251da6b94abe18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27c06536ada9d4226c251da6b94abe18">◆ </a></span>getVarThresholdGen()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::BackgroundSubtractorMOG2::getVarThresholdGen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.BackgroundSubtractorMOG2.getVarThresholdGen(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the variance threshold for the pixel-model match used for new mixture component generation. </p>
<p>Threshold for the squared Mahalanobis distance that helps decide when a sample is close to the existing components (corresponds to Tg in the paper). If a pixel is not close to any component, it is considered foreground or added as a new component. 3 sigma =&gt; Tg=3*3=9 is default. A smaller Tg value generates more components. A higher Tg value may result in a small number of components but they can grow too large. </p>
</div>
</div>
<a id="ab8bdfc9c318650aed53ecc836667b56a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8bdfc9c318650aed53ecc836667b56a">◆ </a></span>setBackgroundRatio()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setBackgroundRatio </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>ratio</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setBackgroundRatio(</td><td class="paramname">ratio</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the "background ratio" parameter of the algorithm. </p>
</div>
</div>
<a id="af45a64f718ef1b43ca8f738c496408f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af45a64f718ef1b43ca8f738c496408f1">◆ </a></span>setComplexityReductionThreshold()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setComplexityReductionThreshold </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>ct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setComplexityReductionThreshold(</td><td class="paramname">ct</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the complexity reduction threshold. </p>
</div>
</div>
<a id="a329fea969ebfb55814f85418b63c4d96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a329fea969ebfb55814f85418b63c4d96">◆ </a></span>setDetectShadows()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setDetectShadows </td>
          <td>(</td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>detectShadows</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setDetectShadows(</td><td class="paramname">detectShadows</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Enables or disables shadow detection. </p>
</div>
</div>
<a id="a5e8b40fef89a582ce42d99d2453db67a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e8b40fef89a582ce42d99d2453db67a">◆ </a></span>setHistory()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setHistory </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>history</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setHistory(</td><td class="paramname">history</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the number of last frames that affect the background model. </p>
</div>
</div>
<a id="ae049541aaa12c3a69d854c8f79a23ba3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae049541aaa12c3a69d854c8f79a23ba3">◆ </a></span>setNMixtures()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setNMixtures </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nmixtures</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setNMixtures(</td><td class="paramname">nmixtures</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the number of gaussian components in the background model. </p>
<p>The model needs to be reinitalized to reserve memory. </p>
</div>
</div>
<a id="a1e9f50c4bf60b77ca12a6977ccdd08cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e9f50c4bf60b77ca12a6977ccdd08cb">◆ </a></span>setShadowThreshold()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setShadowThreshold </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>threshold</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setShadowThreshold(</td><td class="paramname">threshold</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the shadow threshold. </p>
</div>
</div>
<a id="a259029f0eefe5ade47d98d744e829f8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a259029f0eefe5ade47d98d744e829f8a">◆ </a></span>setShadowValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setShadowValue </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setShadowValue(</td><td class="paramname">value</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the shadow value. </p>
</div>
</div>
<a id="a55b91818465653df3672638c1e864bab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55b91818465653df3672638c1e864bab">◆ </a></span>setVarInit()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setVarInit </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>varInit</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setVarInit(</td><td class="paramname">varInit</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the initial variance of each gaussian component. </p>
</div>
</div>
<a id="a2026951d9331d299f14279d53ffb202a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2026951d9331d299f14279d53ffb202a">◆ </a></span>setVarMax()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setVarMax </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>varMax</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setVarMax(</td><td class="paramname">varMax</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a62fd4f08f4528a1f849346139d58e863"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62fd4f08f4528a1f849346139d58e863">◆ </a></span>setVarMin()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setVarMin </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>varMin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setVarMin(</td><td class="paramname">varMin</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="ab58c51659a49f9d8bfdf7062cf4859b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab58c51659a49f9d8bfdf7062cf4859b5">◆ </a></span>setVarThreshold()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setVarThreshold </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>varThreshold</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setVarThreshold(</td><td class="paramname">varThreshold</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the variance threshold for the pixel-model match. </p>
</div>
</div>
<a id="a0afcbbdc16fd13918e2044c2bab10ba4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0afcbbdc16fd13918e2044c2bab10ba4">◆ </a></span>setVarThresholdGen()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::BackgroundSubtractorMOG2::setVarThresholdGen </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>varThresholdGen</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.BackgroundSubtractorMOG2.setVarThresholdGen(</td><td class="paramname">varThresholdGen</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets the variance threshold for the pixel-model match used for new mixture component generation. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/video/<a class="el" href="../../db/d73/background__segm_8hpp.html">background_segm.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:42 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
